<template>
	<view class="box">
		<view class="top" :style="{height:marginNavTop,top:0}">
			<view class="navbar" :style="{paddingTop:statusBarHeight,height:statusNavHeight}">
				<view class="navTop" :style="{height:statusNavHeight}">
					<view class="left" @click="goBack">
						<image class="image" src="../../static/img/back.svg" mode=""></image>
					</view>
					<view class="center">
						我的客服
					</view>
					<view class="right">

					</view>
				</view>
			</view>
		</view>
		<view class="bottom" :style="{paddingTop:marginNavTop}">


			<image src="https://yjyjhaggr-1305618173.cos.ap-chengdu.myqcloud.com/upload/510101/1738915750662734551.png"
				:show-menu-by-longpress='true' mode="aspectFill"></image>
			长按扫码添加客服
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				statusBarHeight: 0,
				statusNavHeight: 0,
				marginNavTop: 0,


			}
		},
		created() {
			this.statusBarHeight = getApp().globalData.statusBarHeight + 'px'
			this.statusNavHeight = getApp().globalData.statusNavHeight + 'px'
			this.marginNavTop = (getApp().globalData.statusBarHeight + getApp().globalData.statusNavHeight + 6) + 'px'
		},
		onReachBottom() {
			console.log('到底还在出发');
		},
		onLoad() {

		},
		methods: {
			goBack() {
				uni.navigateBack()
			},
		}
	}
</script>

<style scoped lang="scss">
	.box {
		width: 100%;
		height: 100%;
		box-sizing: border-box;
		display: flex;
		flex-direction: column;


		.top {
			width: 100%;
			display: flex;
			flex-direction: column;
			box-sizing: border-box;
			position: fixed;
			z-index: 5;

			.navbar {
				width: 100%;
				// border: 2rpx solid red;
				box-sizing: border-box;
			}

			.navTop {
				width: 100%;
				display: flex;

				.left {
					width: 180rpx;
					height: 100%;
					box-sizing: border-box;
					padding-left: 40rpx;

					.image {
						width: 64rpx;
						height: 64rpx;
					}
				}

				.center {
					display: flex;
					align-items: center;
					justify-content: center;
					flex: 1;
					font-family: 思源黑体;
					font-size: 38rpx;
					font-weight: 500;
					letter-spacing: 0rpx;
					color: #000000;
				}

				.right {
					width: 180rpx;
					height: 100%;
				}
			}

		}

		.bottom {
			flex: 1;
			width: 100%;
			box-sizing: border-box;
			display: flex;
			flex-direction: column;
			padding: 0 12rpx;
			padding-bottom: 30rpx !important;

			image {
				width: 100%;
				height: 742rpx;
				border-radius: 18rpx;
				margin-bottom: 10px;
			}

			align-items: center;
			font-weight: 700;
			font-size: 20px;
		}
	}
</style>